Skip to main content

Setup server systemd unit

info

â„šī¸ Use this systemd unit to start TunGo automatically on reboot.

âš™ī¸ Prerequisites​

  1. TunGo is installed as described in Quickstart.

đŸ› ī¸ Setup​

1ī¸âƒŖ Create the service file

sudo vim /etc/systemd/system/tungo.service

2ī¸âƒŖ Paste in this configuration

[Unit]
Description=TunGo VPN Service
After=network-online.target
Wants=network-online.target

[Service]
Type=simple
ExecStart=tungo s
User=root
Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target

3ī¸âƒŖ Enable the service

sudo systemctl enable tungo.service

4ī¸âƒŖ Start the service

sudo systemctl start tungo.service

5ī¸âƒŖ Check its status

sudo systemctl status tungo.service